<?
if (!isset($weather[forecast])):
  $weather[forecast]=array();
  echo "check the location - error";
endif;
?>

<table summary='t1'>
  <tr>
    <td class="l">
      <h6>Forcast Information</h6> <hr class="cg" />
      City :<?=$weather[forecast_information][city]?> <br />
      Postal code :<?=$weather[forecast_information][postal_code]?> <br />
      latitude :<?=$weather[forecast_information][latitude_e6]?> <br />
      longitude  :<?=$weather[forecast_information][longitude_e6]?> <br />
      forecast date :<?=$weather[forecast_information][forecast_date]?> <br />
      current time :<?=$weather[forecast_information][current_date_time]?> ?GMT adjustment<br />
      unit system :<?=$weather[forecast_information][unit_system]?> <br />
    </td>
    <td class="l">
      <h6><?php echo Yii::t('yewai','weather_Current Condition');?></h6> <hr class="cg" />
        <?=$weather[current_conditions][temp_c]?> &#186;C / <?=$weather[current_conditions][temp_f]?> &#186;F<br />
        <?=$weather[current_conditions][humidity]?> <br />
        <?=$weather[current_conditions][wind_condition]?> <br /><br />
        <?=CHtml::Image(Yii::app()->request->baseUrl.substr($weather[current_conditions][icon],3))?> <br />
        <?=$weather[current_conditions][condition]?> <br />
    </td>
  </tr>
</table><br /><br />

<table summary='t2'>
  <tr>
    <? foreach ( $weather[forecast] as $i => $forecast) { ?>
    <td class="l">
      <h6><?=$forecast[day_of_week]?></h6> <hr class="cg" />
        <?php echo Yii::t('yewai','weather_low');?> :<?=$forecast[low]?> &#186;F <br />
        <?php echo Yii::t('yewai','weather_high');?> :<?=$forecast[high]?> &#186;F <br /><br />
        <?=CHtml::image(Yii::app()->request->baseUrl.substr($forecast[icon],3))?> <br />
        <?=$forecast[condition]?> <br />
    </td>
    <? } ?>
  </tr>
</table>